com.highdeal.pnr.tif
Class SubsReflectDetail

java.lang.Object
  extended by com.highdeal.pnr.tif.SubsReflectDetail
All Implemented Interfaces:
XMLMarshallable

public class SubsReflectDetail
extends java.lang.Object
implements XMLMarshallable

This class is used to give more details about the subscription reflect.

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="subsReflectdetail">
   <xs:complexType>
    <xs:attribute name="name" type="xs:string"/>
    <xs:attribute name="type" type="SubsReflectDetailType"/>
    <xs:attribute name="value" type="xs:string"/>
    <xs:attribute name="caCode" type="xs:string"/>
    <xs:attribute name="caOid" type="xs:string"/>
   </xs:complexType>
  </xs:element>
<xs:simpleType name="SubsReflectDetailType">
   <xs:restriction base="xs:string">
      <xs:enumeration value="decimal"/>
      <xs:enumeration value="string"/>
      <xs:enumeration value="date"/>
      <xs:enumeration value="access"/>
   </xs:restriction>
 </xs:simpleType>


Field Summary
static int ACCESS_TYPE
           
static int DATE_TYPE
           
static int NUMBER_TYPE
           
static int STRING_TYPE
           
 
Constructor Summary
SubsReflectDetail()
          Constructs an empty subscription reflect detail.
SubsReflectDetail(java.lang.String name, int type, java.lang.Object value, java.lang.String caCode, java.lang.Long caOid)
          Builds a complete SubsReflectDetail.
SubsReflectDetail(java.lang.String name, java.lang.Object value, java.lang.String caCode, java.lang.Long caOid)
          Builds a complete SubsReflectDetail without type.
 
Method Summary
 void addCharacterData(java.lang.String cData)
          Adds character data to the content element.
 void addChild(java.lang.String tagName, XMLMarshallable child)
          Adds a child to the object, the child representing the marshallable object which must be added to the element.
 java.lang.String getCaCode()
          Returns the charge activation code of the detail.
 java.lang.Long getCaOid()
          Returns the charge activation id of the detail.
 java.util.Date getDateValue()
          Returns the value of the detail.
 java.math.BigDecimal getDecimalValue()
          Returns the value of the detail.
 java.lang.String getName()
          Returns the name of the detail.
 java.lang.String getStringValue()
          Returns the value of the detail.
 int getType()
          Returns the type of the detail.
 java.lang.Object getValue()
          Returns the value of the detail.
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 void setAttributes(XMLAttributes atts)
          Sets the attributes of the XML representation of the element being processed.
 void setCaCode(java.lang.String chargeCode)
          Sets the charge activation code.
 void setCaOid(java.lang.Long caOid)
          Sets the charge activation id.
 void setValue(java.lang.Object value)
          Sets the value and its type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_TYPE

public static final int DATE_TYPE
See Also:
Constant Field Values

NUMBER_TYPE

public static final int NUMBER_TYPE
See Also:
Constant Field Values

STRING_TYPE

public static final int STRING_TYPE
See Also:
Constant Field Values

ACCESS_TYPE

public static final int ACCESS_TYPE
See Also:
Constant Field Values
Constructor Detail

SubsReflectDetail

public SubsReflectDetail()
Constructs an empty subscription reflect detail.


SubsReflectDetail

public SubsReflectDetail(java.lang.String name,
                         int type,
                         java.lang.Object value,
                         java.lang.String caCode,
                         java.lang.Long caOid)
Builds a complete SubsReflectDetail.

Parameters:
name - the detail name.
type - the type of the detail
value - the detail value
caCode - the charge activation code which owns the detail
caOid - the charge activation id which owns the detail

SubsReflectDetail

public SubsReflectDetail(java.lang.String name,
                         java.lang.Object value,
                         java.lang.String caCode,
                         java.lang.Long caOid)
Builds a complete SubsReflectDetail without type. The detail type is determined by the instance type of value.

Parameters:
name - the detail name.
value - the detail value
caCode - the charge activation code which owns the detail
caOid - the charge activation id which owns the detail
Method Detail

getName

public java.lang.String getName()
Returns the name of the detail.

Returns:
the name of the detail.

setCaCode

public void setCaCode(java.lang.String chargeCode)
Sets the charge activation code.

Parameters:
chargeCode - the charge activation code of the detail.

getCaCode

public java.lang.String getCaCode()
Returns the charge activation code of the detail.

Returns:
the charge activation code of the detail.

getCaOid

public java.lang.Long getCaOid()
Returns the charge activation id of the detail.

Returns:
the charge activation id of the detail.

setCaOid

public void setCaOid(java.lang.Long caOid)
Sets the charge activation id.

Parameters:
caOid - the charge activation id.

getValue

public java.lang.Object getValue()
Returns the value of the detail.

Returns:
the value of the detail.

getStringValue

public java.lang.String getStringValue()
Returns the value of the detail. The result is null if the detail value is not a string.

Returns:
the value of the detail.

setValue

public void setValue(java.lang.Object value)
Sets the value and its type.

Parameters:
value - the Object value.

getDateValue

public java.util.Date getDateValue()
Returns the value of the detail. The result is null if the detail value is not a date.

Returns:
the value of the detail.

getDecimalValue

public java.math.BigDecimal getDecimalValue()
Returns the value of the detail. The result is null if the detail value is not a decimal.

Returns:
the value of the detail.

getType

public int getType()
Returns the type of the detail. The type can be : NUMBER - STRING - DATE - ACCESS

Returns:
the type of the detail.

setAttributes

public void setAttributes(XMLAttributes atts)
Description copied from interface: XMLMarshallable
Sets the attributes of the XML representation of the element being processed.

Specified by:
setAttributes in interface XMLMarshallable
Parameters:
atts - The XML attributes of the current element

addCharacterData

public void addCharacterData(java.lang.String cData)
Description copied from interface: XMLMarshallable
Adds character data to the content element.

Specified by:
addCharacterData in interface XMLMarshallable
Parameters:
cData - The character data to be added

addChild

public void addChild(java.lang.String tagName,
                     XMLMarshallable child)
Description copied from interface: XMLMarshallable
Adds a child to the object, the child representing the marshallable object which must be added to the element.

Specified by:
addChild in interface XMLMarshallable
Parameters:
tagName - The name of tag for the child
child - The child to be added

marshal

public void marshal(XMLOutputter output)
Description copied from interface: XMLMarshallable
Gives an XML representation of this object, including its children.

Specified by:
marshal in interface XMLMarshallable
Parameters:
output - The XML output to marshal the object into

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)